package com.yuyou.train.lesson.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.yuyou.train.service.api.lesson.entity.LessonResourceRuleRelation;
import com.yuyou.train.service.api.user.entity.User;
import com.yuyou.train.service.api.user.entity.UserLessonProgress;

@Mapper
public interface LessonResourceRuleRelationMapper {
    int deleteByPrimaryKey(String id);
    
    int deleteByLessonId(String lessonId);

    int insert(LessonResourceRuleRelation record);

    LessonResourceRuleRelation selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(LessonResourceRuleRelation record);
    
    List<LessonResourceRuleRelation> findLesResRuleRel(LessonResourceRuleRelation record);
    
    LessonResourceRuleRelation selectByLessonId(String lessonId);
    
    int delHwByHwId(String hwId);
    
    int delHwTeacherById(String id);
    
    int delHwPraiseByHwId(String hwId);
    
    int delHwBeByHwId(String hwId);
    
    int cleanUserLessonProgress(String id);
    
    int insertUserLessonProgress(UserLessonProgress UserLessonProgress);
    
    int updateUserLearnStatus(User user);

}